package com.zw.api;/*
 *@program:java-cloud-prevalence
 *@author:zw
 *@Time: 2022/12/13
 *@description: 日志远程调用接口
 */

import com.zw.object.vo.LogLoginVo;
import com.zw.object.system.SysOperLog;
import com.zw.object.vo.OperLogUpdate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "log-service")
public interface LogFeignClient {
    @PostMapping("/admin/system/logLogin/feignLogLogin")
    void AsyncLoginLogSave(@RequestBody LogLoginVo loginVo);

    @PostMapping("/admin/system/operlog/feignSaveOperLog")
    String AsyncOperLogSave(@RequestBody SysOperLog sysOperLog);

    @PostMapping("/admin/system/operlog/feignUpdateOperLog")
    void updateOperLog(OperLogUpdate operLogUpdate);
}
